<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>

    </title>
    <meta charset="utf-8"/>
    <meta name="description"/>
    <meta name="keywords"/>
    <meta content="eric.wu" name="author"/>
    <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type"/>
    <meta content="telephone=no, address=no" name="format-detection"/>
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
          name="viewport"/>
    <link href="../css/reset2.css" rel="stylesheet"/>
    <link href="../css/common.css" rel="stylesheet"/>
    <link href="../css/detail3.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="../css/child.css">
    <link href="../css/widget_menu.css" rel="stylesheet">
    <link href="../css/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="../css/iconfont/iconfont.css" rel="stylesheet">
    <style>
        .bs_float_menu{position:fixed; bottom:50px;right:2px;color:#fff;text-align: center;z-index: 999;}
        .bs_float_menu span{font-size: 24px;line-height: 20px;}
        .bs_float_menu a{color:#fff;border-radius:2em ;background: rgba(21, 21, 21, 0.30);width: 40px;height: 40px;line-height: 40px;
            display: block; margin-bottom: 10px;}
        .bs_td_cart { width: 100px;height: 40px;line-height: 40px;background: #ff5366;}
        .bs_td_cart label{padding:5px 10px;}
        .bs_float_menu a:first-child{display:none }
        .bs_float_menu a:last-child{margin-bottom: 20px; }
    </style>
</head>
<body onselectstart="return true;" ondragstart="return false;">
<div id="product_detail_wp"></div>
<footer id="footer"></footer>
<div class="bs_float_menu"><a href="/wx/index.html"><span class="wicon-home"></span></a></div>
<script type="text/html" id="product_detail">
<div data-role="container" class="container detail3" >
    <header data-role="header">
        <div data-role="widget" data-widget="slider_3" class="slider_3">
            <section data-role="widget" data-widget="img_prev_view" class="widget_wrap">
                <div class="pddc-topwp">
                    <a href="javascript:void(0);" class="pddct-imgwp">
                        <div id='mySwipe'class='swiper-container'>
                            <div class='swipe-wrap'>
                                <% for(var i =0;i<goods_image.length;i++){　%>
                                <div class="swipe-item"><img src="<%=goods_image[i]%>"/></div>
                                <%}%>
                            </div>
                        </div>
                        <span class="pdpic-size-bg"></span>
						<span class="pdpic-size">
							<span class="pds-cursize">1</span>
							/
							<span class="pds-tsize"><%=goods_image.length%></span>
						</span>
                    </a>
                </div>
            </section>
        </div>
    </header>


    <section data-role="body" class="body">
        <!--基本信息-->
        <div class="section_body info_basic">
            <div>
                <ul>
                    <li>
                        <div class="tbox title_and_fav">
                            <div id="label_title" class="title" style="width: 100%;"><%=goods_info.goods_name%>
                                <%if(goods_info.goods_jingle){%>
                                <p style="font-size: 12px;color:#f69555"><%=goods_info.goods_jingle%></p>
                                <%}%></div>
                            <div>
                                <div class="fav">
                                    <span id="icon_fav1" class="icon_fav" style="color:red;">&nbsp;</span>
                                    <label>&nbsp;</label>
                                </div>
                            </div>
                        </div>
                        <div class="tbox price_and_fav price_and_sale">
                            <div>
                                <div class="price">
                                    <% if (goods_info.promotion_type) {
                                    var promo;
                                    switch (goods_info.promotion_type) {
                                    case 'groupbuy':
                                    promo = '抢购';
                                    break;
                                    case 'xianshi':
                                    promo = '限时折扣';
                                    break;
                                    }
                                    %>
                                    <p>
                                        促销价：
                                        ￥<%=goods_info.promotion_price%>
                                        <% if (promo) { %>
                                        （<%= promo %>）
                                        <% } %>
                                    </p>

                                    <p><span>原价：￥<span id="label_price_original" style="text-decoration: line-through;"><%=goods_info.goods_price%></span></span></p>
                                    <% } else { %>
                                    <p>价格：￥<%=goods_info.goods_price%></p>
                                    <% } %>
                                    <p>
                                        市场价:<del>￥<%=goods_info.goods_marketprice%></del>
                                    </p>

                                    <% if (goods_info.is_virtual == '1') { %>
                                    <p>
                                        提货方式：电子兑换券
                                    </p>
                                    <p>
                                        有效期：
                                            即日起 到 <%= goods_info.virtual_indate_str %>
                                            <% if (goods_info.buyLimitation && goods_info.buyLimitation > 0) { %>
                                            （每人次限购 <%= goods_info.buyLimitation %> 件）
                                            <% } %>
                                    </p>
                                    <% } else { %>
                                    <% if (goods_info.is_presell == '1') { %>
                                    <p>
                                        预售：<%= goods_info.presell_deliverdate_str %> 日发货
                                    </p>
                                    <% } %>
                                    <% if (goods_info.is_fcode == '1') { %>
                                    <p>
                                        购买类型：F码优先购买（每个F码优先购买一件商品）
                                    </p>
                                    <% } %>
                                    <% } %>
                                </div>
                            </div>
                        </div>

                        <!--/li>
                        <li-->


                        <p class="freight"><label class="fr">销量&nbsp;&nbsp;<%=goods_info.goods_salenum%>件</label><div style="clear:both"></div></p>


                    </li>
                    <%if(goods_info.profit>0){%>
                    <li class="bs_products_profit">
                        <div class="profit_container" >
                            <div class="profit_money">
                            <i class="icon iconfont">&#xe600;</i>
                            <span id="label_price" <%if(goods_info.profit>9999){%>
                                                    style="font-size:16px"
                                                    <%}%>
                                ><%=goods_info.profit%>元</span>
                            </div>
                            <div class="profit_instr" >
                                <p class="profit_title">红包</p>
                                <p class="profit_content">使用红包立减<%=goods_info.profit%>元</p>
                            </div>
                            <div class="profit_deal" id="icon_profit"><i class="fa fa-angle-down" id="icon_profit_deal"></i></div>
                        </div>
                        <div class="profit_direction">
                            <p>1.红包仅限于当前商品使用。</p>
                            <p>2.红包可以当做现金抵扣，不与其他优惠冲突。</p>
                        </div>
                        </li>
                    <%}%>
                    <!--活动营销-->
                    <%if(mansong_info && mansong_info.mansong_name){%>
                    <li style="padding: 0;">
                        <div id="dl_activity_ads" class="dl_activity_ads">

                            <dl class="activity_ads tbox">
                                <dd>
                                    <label class="activity_ads_tag">活动名称</label>
                                </dd>
                                <dd>
                                    <label class="activity_ads_content">
                                        <p>
                                            <%=mansong_info.mansong_name%>
                                            </p>
                                    </label>
                                </dd>
                            </dl>
                            <dl class=" tbox" style="padding:10px 6px;">
                                <dd>
                                    <label class="activity_ads_tag">活动描述</label>
                                </dd>
                                <dd>
                                    <label class="activity_ads_content">
                                        <p><%
                                            if (mansong_info != null && mansong_info.rules) {
                                            for (var i =0;i<mansong_info.rules.length;i++){
                                            %>
                                        <div class="no-value mt5">
                                            单笔订单满<span class="clr-d94 mr5 ml5"><%=mansong_info.rules[i].price%></span>元
                                            <% if (mansong_info.rules[i].discount > 0) { %>
                                            ，立减<span class="clr-green mr5 ml5"><%=mansong_info.rules[i].discount%></span>元
                                            <% } %>
                                            <% if (mansong_info.rules[i].goods_id != '0') { %>
                                            ，送礼品：
                                            <p class="">
                                                <img src="<%=mansong_info.rules[i].goods_image_url%>"/>
                                            <p>
                                                <% } %>
                                        </div>
                                        <%}}else {%>
                                        暂无
                                        <%}%>
                                        </p>
                                    </label>
                                </dd>
                            </dl>
                        </div>
                    </li>
                    <%}%>
                    <li class="pddc-stock">
                        <% if(goods_map_spec.length>0){%>
                        <% for(var i =0;i<goods_map_spec.length;i++){%>
                    <div class="pddc-stock-spec bd-tdashed-dd">
							<span class="key-no" spec_id="<%=goods_map_spec[i].id%>">
								<%=goods_map_spec[i].goods_spec_name%>：
							</span>
                        <div class="value-no mt10">
                            <%for(var j = 0;j<goods_map_spec[i].goods_spec_value.length;j++){%>
                            <a href="javascript:void(0);" <%if (goods_info.goods_spec[goods_map_spec[i].goods_spec_value[j].specs_value_id]){%> class="current" <%}%>specs_value_id = "<%=goods_map_spec[i].goods_spec_value[j].specs_value_id%>">
                            <%=goods_map_spec[i].goods_spec_value[j].specs_value_name%>
                            <i class="pd-choice-icon"></i>
                            </a>
                            <%}%>
                        </div>
                    </div>
                    <%}%>
                    <%}%>
                    </li>

                    <li id="list_sku_number">
                        <table id="table_number" class="table_number" width="100%">
                            <tbody>
                            <tr>
                                <td>
                                    <label style="white-space: pre;">数量</label>
                                </td>
                                <td>
                                    <div class="box">
                                        <div class="sub_num">
                                            <input type="button" value="-"/>
                                        </div>
                                        <div>
                                            <input type="number" value="1" class="buy-num" id="buynum">
                                        </div>
                                        <div class="add_num">
                                            <input type="button" value="+">
                                        </div>
                                    </div>
                                </td>
                                <td class="td_sku_inventory">
                                    <label id="sku_inventory" class="sku_inventory">(库存<%=goods_info.goods_storage%>)</label>
                                </td>
                                <%if(goods_info.promotion_type!='groupbuy' && goods_info.is_virtual != '1' && goods_info.is_presell != '1' && goods_info.is_fcode != '1'){%>
                                <td>
                                    <div class="bs_td_cart btn  add-to-cart " style="float:right"><label>加入购物车</label></div>
                                    <div style="clear: both"></div>
                                </td>
                                <%}%>
                            </tr>
                            </tbody>
                        </table>

                    </li>

                </ul>
            </div>
        </div>
        <!--参数&详情&评价-->
        <div class="section_body info_detail">
            <div>
                <div id="div_nav_fixed">
                    <div id="div_nav" class="div_nav">
                        <ul class="box">
                            <li>
                                <a href="javascript:;" data-idx="0" class="on">商品属性</a>
                            </li>
                            <li style="display:none;">
                                <a href="javascript:;" data-idx="1">图文详情</a>
                            </li >
                            <li style="display:none;">
                                <a href="javascript:;" data-idx="2">评价</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div id="div_sections" class="div_sections">
                    <section class="section_specification on">
                        <p id="mobile_body">
                            暂无商品描述
                        </p>
                    </section>
                    <section class="section_detail " data-role="widget" data-widget="img_prev_view">
                        <img src="../images/1504141505105739.jpg" alt=""/>
                    </section>
                    <section class="section_comments">
                        <div>
                            <ul id="nav_comments" class="nav_comments box">
                                <!---->
                            </ul>
                        </div>
                        <div id="list_comments">
                            <ul id="list_comments_0" class="list_comments on">
                                <!---->
                            </ul>
                            <ul id="list_comments_1" class="list_comments">
                                <!---->
                            </ul>
                            <ul id="list_comments_2" class="list_comments">
                                <!---->
                            </ul>
                        </div>
                    </section>
                </div>
            </div>
        </div>
    </section>


    <footer data-role="footer">


        <div data-role="copyright">



        </div>

        <!---->
        <div data-role="widget" data-widget="btip_widget" class="btip_widget hidden" id="btip_widget">
            <div class="widget_wrap">
                <label id="btip_label" class="btip_label">该商品最多可购买2件</label>
            </div>
        </div>

        <!---->

        <div data-role="widget" data-widget="">
            <div class="widget_wrap">
                <ul class="fixed_btn">
                    <ol id="fixed_btn" class="tbox" style="position: fixed;">
                        <li>
                            <div style="width: 105px">
                                <a href="javascript:;" id="btn_add_fav" class="btn_add btn_add_fav ">&nbsp;</a>
                                <a href="/wx/tmpl/cart_list.html" id="btn_link_shopcart" class="btn_add btn_add_shopcart"
                                   data-count="0">&nbsp;</a>
                            </div>
                        </li>
                        <li>
                            <div class="box">
                                <div>
                                    <a href="javascript:;" id="btn_add_shopcart " class="btn share_profit">
                                        立即分享
                                        </a>
                                </div>
                                <div>
                                    <a href="javascript:;" id="btn_buy" class="btn red buy-now">
                                        <label> <% if (goods_info.is_virtual == '1') { %>
                                            立即购买
                                            <% } else if (goods_info.is_presell == '1') { %>
                                            预售购买
                                            <% } else if (goods_info.is_fcode == '1') { %>
                                            F码购买
                                            <% } else { %>
                                            立即购买
                                            <% } %></label></a>
                                </div>
                            </div>
                        </li>
                    </ol>
                </ul>
            </div>
        </div>

    </footer>
</div>
</script>
<script type="text/javascript" src="../js/zepto.min.js"></script>
<script type="text/javascript" src="../js/config.js"></script>
<script type="text/javascript" src="../js/template.js"></script>
<script type="text/javascript" src="../js/swipe.js"></script>
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript" src="../js/simple-plugin.js"></script>
<script src="../js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="../js/wx_common.js"></script>
<script type="text/javascript" src="../js/tmpl/footer.js"></script>
<script type="text/javascript" src="../js/tmpl/product_detail.js"></script>
<script>
</script>
</body>
</html>
